/**
 * xdemo.org
 */
package org.xdemo.site.biz.portal.demo.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @作者 Goofy
 * @邮件 252878950@qq.com
 * @日期 2014-1-1
 * @描述 评论实体类
 */
@Entity
@Table(name="demoComment")
public class DemoComment {

	@Id
	@GenericGenerator(name="idGenerator",strategy="uuid")//ID生成器属性包括生成器ID，生成策略
	@GeneratedValue(generator="idGenerator")//引用ID生成器
	@Column(length=64)
	private String commentId;
	/**
	 * 评论者ID
	 */
	@Column(nullable=false,length=64)
	private String userId;
	/**
	 * 评论者名称
	 */
	@Column(nullable=false,length=64)
	private String userName;
	/**
	 * 回复某人，此人的ID
	 */
	@Column(nullable=true,length=64)
	private String responseToUserId;
	/**
	 * 回复某人，此人的名称
	 */
	@Column(nullable=true,length=64)
	private String responseToUserName;
	/**
	 * 评论内容
	 */
	@Column(nullable=false,length=64)
	private String content;
	/**
	 * 评论日期
	 */
	@Column(nullable=false)
	private Date date;
	/**
	 * 发表评论的ID
	 */
	@Column(nullable=false)
	private String ip;
	
	
	
	public String getCommentId() {
		return commentId;
	}
	public void setCommentId(String commentId) {
		this.commentId = commentId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getResponseToUserId() {
		return responseToUserId;
	}
	public void setResponseToUserId(String responseToUserId) {
		this.responseToUserId = responseToUserId;
	}
	public String getResponseToUserName() {
		return responseToUserName;
	}
	public void setResponseToUserName(String responseToUserName) {
		this.responseToUserName = responseToUserName;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
}
